package xuexi;
class yuangong{
    private String bianhao;
    private String name;
    private double qian;
    private float jiaqina;

    public String getBianhao() {
        return bianhao;
    }

    public void setBianhao(String bianhao) {
        this.bianhao = bianhao;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getQian() {
        return qian;
    }

    public void setQian(double qian) {
        this.qian = qian;
    }

    public float getJiaqina() {
        return jiaqina;
    }

    public void setJiaqina(float jiaqina) {
        this.jiaqina = jiaqina;
    }


    public yuangong(){}
    public yuangong(String bianhao,String name,double qian,float jiaqina){

        this.bianhao=bianhao;
        this.name=name;
        this.qian=qian;
        this.jiaqina=jiaqina;
    }
    public  String getinfo(){
        return "基本信息:"+this.bianhao+","+this.name+','+this.qian+","+this.jiaqina;
    }
    public float edu(){
        return (float) (this.qian*this.jiaqina);
    }
    public float zonggz(){
        return (float) (this.qian*(1+this.jiaqina));
    }

}
public class guyuan {
    public  static void main(String[] args){
        yuangong x1=new yuangong("10086","张三",3000.0,0.3f);
        System.out.println(x1.getinfo());
        System.out.println("增长额度"+x1.edu());
        System.out.println("总工资:"+x1.zonggz());
    }
}
